package com.tt.payee.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName TbRoleUser
 * @Description TODO(角色用户表-映射类)
 * @Date 2020-06-04 16:34:59
 * @author Sam
 */

@ApiModel(value="TbRoleUser")
@Data
@Table(name = "tb_role_user")
public class TbRoleUser implements Serializable {
	
	/**
	*主键
	**/
	@Id
	@GeneratedValue(generator = "JDBC")
	@ApiModelProperty(value="id")
	@Column(name = "id")
	private Long id;
	
	/**
	*角色ID
	**/
	@NotNull(message = "角色ID不能为空")
	@ApiModelProperty(value="roleId")
	@Column(name = "role_id")
	private Long roleId;
	
	/**
	*用户ID
	**/
	@NotNull(message = "用户ID不能为空")
	@ApiModelProperty(value="userId")
	@Column(name = "user_id")
	private Long userId;
	
	
}

